

uniform samplerCube EnvironnementMap;
varying vec3 ReflectDir;
void main()
{
	// Look up environment map value in cube map
	vec3 envColor = vec3(textureCube(EnvironnementMap, ReflectDir));
	//gl_FragColor = vec4(ReflectDir, 1.0);
	envColor *= 0.5;
	gl_FragColor = vec4(envColor, 1.0);	
}